//
//  KDUnitPerformanceCell.m
//  WangJingApp
//
//  Created by 魏强 on 17/1/19.
//  Copyright © 2017年 KDTech. All rights reserved.
//  单位表现cell

#import "KDUnitPerformanceCell.h"
@interface KDUnitPerformanceCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLb;
@property (weak, nonatomic) IBOutlet UILabel *selfUnitLb;
@property (weak, nonatomic) IBOutlet UILabel *reportNumLb;
@property (weak, nonatomic) IBOutlet UILabel *superUnitLb;

@end
@implementation KDUnitPerformanceCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    NSString *cellId =@"KDUnitPerformanceCell";
    KDUnitPerformanceCell *cell =[tableView dequeueReusableCellWithIdentifier:cellId];
    if (cell == nil)
    {
        cell =[[[NSBundle mainBundle]loadNibNamed:@"KDUnitPerformanceCell" owner:self options:nil]lastObject];
    }
    cell.contentView.backgroundColor = BackGroundColor;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}
-(void)setModel:(KDUnitPerformanceModel *)model{
    _model = model;
    self.nameLb.text = model.name;
    self.reportNumLb.text = [NSString stringWithFormat:@"%@ 条",model.report_num];
    self.selfUnitLb.text = model.selfUnitPerformance;
    self.superUnitLb.text = model.superUnitPerformance;
}

@end
